package com.ruoyi.attachedRecord.mapper;

import java.util.List;
import com.ruoyi.attachedRecord.domain.AttachedRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 检测记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-19
 */
public interface AttachedRecordMapper
{
    /**
     * 查询检测记录
     *
     * @param id 检测记录主键
     * @return 检测记录
     */
    public AttachedRecord selectAttachedRecordById(Long id);

    /**
     * 查询检测记录列表
     *
     * @param attachedRecord 检测记录
     * @return 检测记录集合
     */
    public List<AttachedRecord> selectAttachedRecordList(AttachedRecord attachedRecord);

    public Long selectAttachedRecordListForSum(AttachedRecord attachedRecord);
    /**
     * 新增检测记录
     *
     * @param attachedRecord 检测记录
     * @return 结果
     */
    public int insertAttachedRecord(AttachedRecord attachedRecord);

    /**
     * 修改检测记录
     *
     * @param attachedRecord 检测记录
     * @return 结果
     */
    public int updateAttachedRecord(AttachedRecord attachedRecord);

    /**
     * 删除检测记录
     *
     * @param id 检测记录主键
     * @return 结果
     */
    public int deleteAttachedRecordById(Long id);

    /**
     * 批量删除检测记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAttachedRecordByIds(Long[] ids);

    /**
     * 批量逻辑删除检测记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int logicDeleteAttachedRecord(@Param("array")Long[] ids,@Param("delType")String delType,@Param("delUser")Long delUser);
}
